class Counter {
  constructor() {
    this.num = 0;
  }

  increment() {
    this.num ++;
  }

  getNum() {
    return this.num;
  }
}